let proxyObj={}

proxyObj['/']={
	//websocket
	ws:false,
	target: 'http://localhost:8081',
	//发送请求的请求头，会被设置成target
	changeOrigin: true,
	//不重写请求地址
	pathReWrite:{
		'^/':'/'
	}
}
proxyObj['/ws'] = {
	ws: true,
	target: 'ws://localhost:8081'
};

module.exports={
	devServer:{
		host: 'localhost',
		port: 8080,
		proxy: proxyObj
	}
}